Skip to content

chore(prompts): destruct limitOption param for better code readability#457

Merged
43081j merged 2 commits intobombshell-dev:mainfrom
Simek:prompts-destruct-limitOptions-param
Feb 24, 2026
Merged

chore(prompts): destruct limitOption param for better code readability#457
43081j merged 2 commits intobombshell-dev:mainfrom
Simek:prompts-destruct-limitOptions-param

Conversation

@Simek
Copy link
Contributor

@Simek Simek commented Feb 4, 2026

Why

While going through the codebase I have spotted that limitOption param are partially destructed, and partially used directly by key reference. It seems to me that it makes code a bit harder to read, and understand default values at a glance.

How

Destruct limitOption param fully in the function definition for better code readability, apply small tweaks to type definition (combining [] with Array<> for the same type looked really odd).

@changeset-bot
Copy link

changeset-bot bot commented Feb 4, 2026

🦋 Changeset detected

Latest commit: 33a6f43

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@clack/prompts Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 24, 2026

commit: 33a6f43

@43081j 43081j merged commit c3666e2 into bombshell-dev:main Feb 24, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants